<?php

class Pagina{

	public function __construct($vTitulo)
	{
		/* validacao da W3Consortium */
		echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";

		echo "<html>\n\t<head>\n\t\t<title>$vTitulo</title>\n";
		echo "\t\t<meta http-equiv='Content-type' content='text/html; charset=utf-8'>\n";
		echo "\t\t<link rel='stylesheet' type='text/css' href='style/base.css' />\n";
	}

	public function adicionarCSS($vCss)
	{
		echo "\t\t<link rel='stylesheet' type='text/css' href='style/$vCss' />\n";
	}

	public function adicionarJS($vJs)
	{
		echo "\t\t<script type='text/javascript' src='script/$vJs'></script>\n";
	}

	public function inicio()
	{
		echo "\t</head>\n\t<body>\n";
		echo "\t\t<div id='pagina'>\n";
		echo "\t\t\t<div id='topo'>\n";
		echo "\t\t\t\t<a href='img/icone-large.png'><img src='img/icone.png' /></a>\n";
		echo "\t\t\t\t<h1>QVOIP.M</h1><h2>Controle de Qualidade de ligações de Voz sobre IP</h2>\n";
		echo "\t\t\t\t<ul id='menu'>\n";
		echo "\t\t\t\t\t<li><a href='index.php'>Home</a></li>\n";
		echo "\t\t\t\t\t<li><a href='http://www.uel.br/'>UEL</a></li>\n";
		echo "\t\t\t\t\t<li><a href='http://www.dc.uel.br/'>Dep. de Computação</a></li>\n";
		echo "\t\t\t\t\t<li><a href='http://www.dc.uel.br/pesquisa/redes/orion/'>Lab. Orion</a></li>\n";
		echo "\t\t\t\t</ul>\n";
		echo "\t\t\t</div>\n";
		echo "\t\t\t<div id='conteudo'>\n";
	}
	
	public function fim()
	{
		echo "\t\t\t</div>\n";
		echo "\t\t\t<div id='rodape'>\n";
		echo "\t\t\t\tOrion - Laboratório de Pesquisa em Redes e Comunicação de Dados, Departamento de Computação, UEL\n";
		echo "\t\t\t</div>\n";
		echo "\t\t</div>\n";
		echo "\t</body>\n";
		echo "</html>\n";
	}

	public function __destruct()
	{

	}

}

?>
